package com.sharing.common;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/3 23:26
 */
@Data
public class Page<T> implements Serializable {
    private Integer total;
    private Integer size;
    private List<T> result;

    public Page() {
    }

    public Page(Integer total, Integer size, List<T> result) {
        this.total = total;
        this.size = size;
        this.result = result;
    }

    public String toString() {
        return "Page{total=" + total
                + ", size=" + size
                + ", result=" + result
                + "}";
    }
}
